package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.EventMapper;
import com.ygs.secs.model.Event;
import com.ygs.secs.service.EventService;

@Service
public class EventServiceImpl implements EventService {

    @Resource
    private EventMapper eventMapper;

    @Override
    public int deleteByPrimaryKey(Integer eventid) {
        return eventMapper.deleteByPrimaryKey(eventid);
    }

    @Override
    public int insert(Event record) {
        return eventMapper.insert(record);
    }

    @Override
    public int insertSelective(Event record) {
        return eventMapper.insertSelective(record);
    }

    @Override
    public Event selectByPrimaryKey(Integer eventid) {
        return eventMapper.selectByPrimaryKey(eventid);
    }

    @Override
    public int updateByPrimaryKeySelective(Event record) {
        return eventMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Event record) {
        return eventMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Event> list) {
        return eventMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Event> list) {
        return eventMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Event> list) {
        return eventMapper.batchInsert(list);
    }

    @Override
    public List<Event> getstueventlist(String stuid) {
        return eventMapper.getstueventlist(stuid);
    }

}
